﻿using Application.AppService.IConfig;
using AutoMapper;
using Domain;
using Microsoft.AspNetCore.Mvc;

namespace UI.Controllers.MoKuaiYi_第一个模块_.Employment_management_录用管理_
{

    public class ERInquireController : Controller
    {
        private readonly IMapper mapper;
        private readonly IEngage_resumeAppService eRAppService;
        private readonly IEngage_interviewAppService eIAppService;

        public ERInquireController(IMapper mapper, IEngage_resumeAppService eRAppService, IEngage_interviewAppService eIAppService) 
        {
            this.mapper = mapper;
            this.eRAppService = eRAppService;
            this.eIAppService = eIAppService;
        }
        public IActionResult Index()
        {
            return View();
        }
        public IActionResult Index1()
        {
            return View();
        }
        [HttpPost("FYERInquire")]
        public IActionResult FYERInquire(int page, int pageSize)
        {

            ERFenYE erFenYE = eRAppService.DateERSAsync(page, pageSize, 5);
            return Json(erFenYE);
        }
    }
}
